import request from "@/utils/request";

// 查询入库基本信息列表
export function getInfoList(params) {
  return request({
    url: "/mes/Warehousing/info/list",
    method: "get",
    params,
  });
}
// 新增入库基本信息
export function addInfo(data) {
  return request({
    url: "/mes/Warehousing/info",
    method: "post",
    data,
  });
}
// 修改入库基本信息
export function editInfo(data) {
  return request({
    url: "/mes/Warehousing/info",
    method: "put",
    data,
  });
}
// 获取入库基本信息详细信息
export function getInfo(id, params) {
  return request({
    url: `/mes/Warehousing/info/${id}`,
    method: "get",
    params,
  });
}
// 删除入库基本信息
export function delInfo(id) {
  return request({
    url: `/mes/Warehousing/info/${id}`,
    method: "DELETE",
  });
}
// 纸张入库明细查询
export function getDetaillist(data) {
  return request({
    url: `/mes/Warehousing/info/Detail`,
    method: "post",
    data,
  });
}

// 导出
export function exportList(data) {
  return request({
    url: `/mes/Warehousing/info/export`,
    method: "post",
    data,
    responseType: "blob",
  });
}


//导出纸张调拨明细
export function exportWarehousingDetail(data) {
  return request({
    url: `/mes/Warehousing/info/exportWarehousingDetail`,
    method: "post",
    data,
    responseType: "blob",
  });
}